.chromeless {
  background-color:  @log-bg-color;
  color: #d1d1d1;
  height: 100%; // extends dark background to full height while logs are loading
  .log-loading-msg {
    .empty-state-message();
    .h2();
    .text-center();
  }
  log-viewer {
    flex: 1 1 0%;
  }
}
.log-title {
  margin-top: 0;
}
.log-header {
  margin-bottom: 3px;
  label {
    margin-bottom: 0;
  }
  .dash {
    .text-muted();
    margin: 0 0 0 4px;
  }
  .ui-select-container {
    min-width: 150px;
    max-width: 250px;
    margin: 0 5px;
  }
  .container-details {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    > label {
      margin-right: 3px;
    }
    .container-state {
      margin-right: 5px;
    }
  }
  .log-actions {
    form {
      display: inline-block;
    }
    .btn-link {
      padding: 0;
    }
  }
  .log-timestamps {
    .text-muted();
    display: block;
  }
  @media (min-width: @screen-sm-min) {
    .log-status {
      display: inline;
    }
    .log-timestamps {
      .small();
      display: inline-block;
    }
    .log-actions {
      .pull-right();
      margin-left: 5px;
    }
  }
}
.log-viewer-select {
  .log-header {
    margin-bottom: 8px;
  }
  .log-actions {
    margin-top: 5px;
  }
}
.log-size-warning {
  margin: 0;
}
@media (max-width: @screen-sm-max) {
  .log-size-warning {
    margin-top: 20px;
  }
}
.log-view {
  background-color: @log-bg-color;
  // Make sure log-actions are not hidden behind log if they wrap.
  clear: both;
  font-family: @font-family-monospace;
  .mar-bottom-xl();
  padding: 0;
  position: relative;
  .chromeless & {
    margin-bottom: 0;
  }
  pre, pre code {
    background-color: transparent;
    border: 0;
    margin-bottom: 0;
    overflow: visible;
    padding: 0 10px;
  }
  .log-scroll a {
    background-color: lighten(@log-bg-color, 30%);
    border-radius: 1px;
    box-shadow: 0 0 5px 7px rgba(0,0,0,.9);
    color: @color-pf-white;
    display: inline-block;
    font-family: @font-family-base;
    font-size: @font-size-base;
    padding: 2px 6px;
    &:focus,
    &:hover {
      background-color: lighten(@log-bg-color, 35%);
      color: @color-pf-white;
      text-decoration: none;
    }
  }
  .log-scroll-bottom {
    bottom: @log-scroll-offset-bottom;
    position: absolute;
    right: @log-scroll-offset-right;
  }
  .log-scroll-top {
    position: absolute;
    right: @log-scroll-offset-right;
    top: @log-scroll-offset-top;
    &.affix {
      position: fixed;
      right: @log-scroll-top-offset-right;
      top: (@log-scroll-offset-top + @navbar-os-header-height-mobile + @project-bar-height-mobile);
      @media (min-width: @screen-sm-min) {
        top: (@log-scroll-offset-top + @navbar-os-header-height-desktop + @project-bar-height-desktop);
      }
      .chromeless & {
        right: @log-scroll-offset-right;
        top: (@log-scroll-offset-top + @navbar-os-header-height-mobile);
        @media (min-width: @screen-sm-min) {
          top: (@log-scroll-offset-top + @navbar-os-header-height-desktop);
        }
      }
    }
  }
  .log-view-output {
    font-size: 11px;
    @media (min-width: @screen-sm-min) {
      font-size: 12px;
    }
    padding: 40px 0;
    padding-right: @scrollbar-width; // allot space for vertical scrollbar to prevent horizontal scrollbar
    @media only screen and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 0) {
      // On an iPhone, add additional margin so that following logs is never obscured
      // by the bottom buttons that are displayed and hidden.
      padding-bottom: 70px;
    }
    table {
      table-layout: fixed;
      width: 100%;
    }
  }
  &.log-fixed-height {
    .log-end-msg {
      margin: 20px 0 -35px 10px;
      position: static;
    }
    .log-scroll-top.affix {
      position: absolute;
      right: @log-scroll-offset-right;
      top: @log-scroll-offset-top;
    }
    .log-view-output {
      overflow: auto;
      // Firefox collapses the bottom padding, so use margin on the child
      // table instead
      padding-bottom: 0;
      padding-top: 0;
      table {
        // Firefox collapses the bottom padding on .log-view-output, so use
        // margin on this child table instead
        margin-bottom: 40px;
        margin-top: 30px;
      }
    }
  }
}
.log-pending-ellipsis {
  display: inline-block;
  padding-top: @grid-gutter-width / 2;
  width: 100%;
  .chromeless & {
    padding-left: (@grid-gutter-width - 10px);
  }
}
.log-end-msg {
  font-family: @font-family-base;
  font-size: @font-size-base;
  color: #72767b;
  position: absolute;
  bottom: 5px;
  left: 10px;
}
.log-link-external {
  text-align: right;
  a {
    margin-left: 20px;
    margin-right: 10px;
    white-space: nowrap;
  }
  i {
    font-size: @font-size-xsmall;
    margin-left: 5px;
  }
}
.log-line {
  color: #d1d1d1;
  &:hover {
    background-color: lighten(@log-bg-color, 8%);
    color: #ededed;
  }
}
.log-line-number:before {
  content: attr(data-line-number);
}
.log-line-number {
  .unselectable();
  border-right: 1px lighten(@log-bg-color, 10%) solid;
  padding-right: 10px;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
  width: 60px;
  color: #72767b;
}
.log-line-text {
  padding: 0 10px;
  white-space: pre-wrap;
  width: 100%;
  .word-break();
  // Invert colors on selection
  &::-moz-selection, *:not(a)::-moz-selection {
    background: #a0a1a1;
    color: @log-bg-color;
  }
  a::-moz-selection {
    background: #a0a1a1;
    color: darken(@link-color, 8%);
  }
  &::selection, *::selection {
    background: lighten(#d1d1d1, 15%);
    color: @log-bg-color;
  }
  a::selection {
    background: lighten(#d1d1d1, 15%);
    color: darken(@link-color, 8%);
  }
}
.table-log-pods {
  > tbody + tbody {
    border-top-width: 1px;
  }
  background-color: #fff;
  border: 1px solid #D1D1D1;
}

.log-fixed-height.empty-state-message {
  margin-top: 0;
}
